MoreExam
1. Question Content...
EXPLANATION
Answer: X - EXPLANATION Content.
Question1: An administrator installed an application from source into /opt/operations1/ and has received numerous reports that users are not able to access the application without having to use the full path /opt/operations1/bin/*.Which of the following commands should be used to resolve this issue?
Question2: A systems administrator notices the process list on a mission-critical server has a large number of processes that are in state "Z" and marked as "defunct." Which of the following should the administrator do in an attempt to safely remove these entries from the process list?
Question3: A systems engineer has deployed a new application server, but the server cannot communicate with the backend database hostname. The engineer confirms that the application server can ping the database server's IP address. Which of the following is the most likely cause of the issue?
Question4: Which of the following technologies provides load balancing, encryption, and observability in containerized environments?
Question5: A Linux administrator is installing a web server and needs to check whether web traffic has already been allowed through the firewall. Which of the following commands should the administrator use to accomplish this task?
Question6: A cloud engineer is asked to copy the file deployment.yaml from a container to the host where the container is running. Which of the following commands can accomplish this task?
Question7: To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the following should the administrator do?
Question8: An administrator created an initial Git repository and uploaded the first files. The administrator sees the following when listing the repository:The administrator notices the file . DS STORE should not be included and deletes it from the online repository. Which of the following should the administrator run from the root of the local repository before the next commit to ensure the file is not uploaded again in future commits?
Question9: A Linux administrator is troubleshooting the root cause of a high CPU load and average.Which of the following commands will permanently resolve the issue?
Question10: After installing a new version of a package, a systems administrator notices a new version of the corresponding, service file was Installed In order to use the new version of the, service file, which of the following commands must be Issued FIRST?
Question11: Which of the following can be used as a secure way to access a remote termi-nal?
Question12: A Linux administrator needs to transfer a local file named accounts . pdf to a remote / tmp directory of a server with the IP address 10.10.10.80. Which of the following commands needs to be executed to transfer this file?
Question13: Users report that connections to a MariaDB service are being closed unexpectedly. A systems administrator troubleshoots the issue and finds the following message in /var/log/messages:Which of the following is causing the connection issue?
Question14: A systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packet forwarding.Which of the following commands is the correct way to accomplish this task?
Question15: When trying to log in remotely to a server, a user receives the following message:The server administrator is investigating the issue on the server and receives the following outputs:Which of the following is causing the issue?
Question16: A Linux engineer needs to create a custom script, cleanup.sh, to run at boot as part of the system services.Which of the following processes would accomplish this task?
Question17: A Linux administrator needs to create a new user named user02. However, user02 must be in a different home directory, which is under /comptia/projects. Which of the following commands will accomplish this task?
Question18: A junior systems administrator recently installed an HBA card in one of the servers that is deployed for a production environment. Which of the following commands can the administrator use to confirm on which server the card was installed?
Question19: A systems administrator made some unapproved changes prior to leaving the company. The newly hired administrator has been tasked with revealing the system to a compliant state. Which of the following commands will list and remove the correspondent packages?
Question20: A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights. Which of the following commands will achieve this goal?
Question21: A Linux administrator needs to correct the permissions of a log file on the server. Which of the following commands should be used to set filename.log permissions to -rwxr-r--. ?
Question22: A Linux administrator wants to prevent the httpd web service from being started both manually and automatically on a server. Which of the following should the administrator use to accomplish this task?
Question23: An administrator recently updated the BIND software package and would like to review the default configuration that shipped with this version. Which of the following files should the administrator review?
Question24: A junior Linux administrator is tasked with installing an application. The installation guide states the application should only be installed in a run level 5 environment.Which of the following commands would ensure the server is set to runlevel 5?
Question25: A systems administrator wants to upgrade /bin/ someapp to a new version, but the administrator does not know the package name. Which of the following will show the RPM package name that provides that binary file?
Question26: A Linux administrator has logged in to a server for the first time and needs to know which services are allowed through the firewall. Which of the following options will return the results for which the administrator is looking?
Question27: A user is asking the systems administrator for assistance with writing a script to verify whether a file exists.Given the following:Which of the following commands should replace the <CONDITIONAL> string?
Question28: While inspecting a recently compromised Linux system, the administrator identified a number of processes that should not have been running:Which of the following commands should the administrator use to terminate all of the identified processes?
Question29: Developers have requested implementation of a persistent, static route on the application server. Packets sent over the interface eth0 to 10.0.213.5/32 should be routed via 10.0.5.1. Which of the following commands should the administrator run to achieve this goal?
Question30: A systems administrator is compiling a report containing information about processes that are listening on the network ports of a Linux server. Which of the following commands will allow the administrator to obtain the needed information?
Question31: A Linux administrator is trying to remove the ACL from the file /home/user/data. txt but receives the following error message:Given the following analysis:Which of the following is causing the error message?
Question32: Which of the following data structures is written in JSON?
Question33: A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator. The following output was received:Which of the following commands can be used to resolve this issue?
Question34: Joe, a user, is unable to log in to the Linux system. Given the following output:Which of the following commands would resolve the issue?
Question35: A cloud engineer needs to block the IP address 192.168.10.50 from accessing a Linux server. Which of the following commands will achieve this goal?
Question36: A junior systems administrator has just generated public and private authentication keys for passwordless login. Which of the following files will be moved to the remote servers?
Question37: A Linux administrator needs to redirect all HTTP traffic temporarily to the new proxy server 192.0.2.25 on port 3128. Which of the following commands will accomplish this task?
Question38: A new file was added to a main Git repository. An administrator wants to synchronize a local copy with the contents of the main repository. Which of the following commands should the administrator use for this task?
Question39: Which of the following files holds the system configuration for journal when running systemd?
Question40: A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available for developers to use when deploying containers. Currently only Java 8 is available. Which of the following commands should the administrator run to ensure both versions are available?
Question41: A developer is trying to install an application remotely that requires a graphical interface for installation. The developer requested assistance to set up the necessary environment variables along with X11 forwarding in SSH. Which of the following environment variables must be set in remote shell in order to launch the graphical interface?
Question42: The security team has identified a web service that is running with elevated privileges A Linux administrator is working to change the systemd service file to meet security compliance standards. Given the following output:Which of the following remediation steps will prevent the web service from running as a privileged user?
Question43: Application code is stored in Git. Due to security concerns, the DevOps engineer does not want to keep a sensitive configuration file, app . conf, in the repository. Which of the following should the engineer do to prevent the file from being uploaded to the repository?
Question44: A Linux administrator needs to obtain a list of all volumes that are part of a volume group. Which of the following commands should the administrator use to accomplish this task?
Question45: Rugged appliances are small appliances with ruggedized hardware and like Quantum Spark appliance they use which operating system?
Question46: Several users reported that they were unable to write data to the /oracle1 directory. The following output has been provided:Which of the following commands should the administrator use to diagnose the issue?
Question47: A Linux engineer set up two local DNS servers (10.10.10.10 and 10.10.10.20) and was testing email connectivity to the local mail server using the mail command on a local machine when the following error appeared:The local machine DNS settings are:Which of the following commands could the engineer use to query the DNS server to get mail server information?
Question48: A Linux engineer needs to download a ZIP file and wants to set the nice of value to -10 for this new process.Which of the following commands will help to accomplish the task?
Question49: A Linux administrator booted up the server and was presented with a non-GUI terminal. The administrator ran the command systemct1 isolate graphical.target and rebooted the system by running systemct1 reboot, which fixed the issue. However, the next day the administrator was presented again with a non-GUI terminal. Which of the following is the issue?
Question50: A systems administrator has been unable to terminate a process. Which of the following should the administrator use to forcibly stop the process?
Question51: Which of the following tools is commonly used for creating CI/CD pipelines?
Question52: A Linux engineer is setting the sticky bit on a directory called devops with 755 file permission. Which of the following commands will accomplish this task?
Question53: A Linux administrator is scheduling a system job that runs a script to check available disk space every hour.The Linux administrator does not want users to be able to start the job. Given the following:The Linux administrator attempts to start the timer service but receives the following error message:Which of the following is MOST likely the reason the timer will not start?
Question54: A systems administrator has been tasked with disabling the nginx service from the environment to prevent it from being automatically and manually started. Which of the following commands will accomplish this task?
Question55: A Linux administrator created a new file system. Which of the following files must be updated to ensure the filesystem mounts at boot time?
Question56: A junior administrator is trying to set up a passwordless SSH connection to one of the servers. The administrator follows the instructions and puts the key in the authorized_key file at the server, but the administrator is still asked to provide a password during the connection.Given the following output:Which of the following commands would resolve the issue and allow an SSH connection to be established without a password?
Question57: A Linux administrator was asked to run a container with the httpd server inside. This container should be exposed at port 443 of a Linux host machine while it internally listens on port 8443. Which of the following commands will accomplish this task?
Question58: A Linux administrator was notified that a virtual server has an I/O bottleneck. The Linux administrator analyzes the following output:Given there is a single CPU in the sever, which of the following is causing the slowness?
Question59: A senior Linux administrator has created several scripts that will be used to install common system applications. These scripts are published to a reposito-ry to share with the systems team. A junior Linux administrator needs to re-trieve the scripts and make them available on a local workstation. Which of the following Git commands should the junior Linux administrator use to accom-plish this task?
Question60: A DevOps engineer needs to download a Git repository from https://git.company.com/admin/project.git.Which of the following commands will achieve this goal?
Question61: A systems administrator frequently connects to a remote host via SSH and a non-standard port. The systems administrator would like to avoid passing the port parameter on the command line every time. Which of the following files can be used to set a different port value for that host?
Question62: Which of the following commands is used to configure the default permissions for new files?
Question63: A DevOps engineer is working on a local copy of a Git repository. The engineer would like to switch from the main branch to the staging branch but notices the staging branch does not exist. Which of the following Git commands should the engineer use to perform this task?
Question64: A Linux administrator is troubleshooting a memory-related issue. Based on the output of the commands:Which of the following commands would address the issue?
Question65: A systems administrator wants to list all local accounts in which the UID is greater than 500. Which of the following commands will give the correct output?
Question66: A newly created container has been unable to start properly, and a Linux administrator is analyzing the cause of the failure. Which of the following will allow the administrator to determine the FIRST command that is executed inside the container right after it starts?
Question67: An administrator transferred a key for SSH authentication to a home directory on a remote server. The key file was moved to .ssh/authorized_keys location in order to establish SSH connection without a password.However, the SSH command still asked for the password. Given the following output:Which of the following commands would resolve the issue?
Question68: A database administrator requested the installation of a custom database on one of the servers. Which of the following should the Linux administrator configure so the requested packages can be installed?
Question69: A systems administrator wants to test the route between IP address 10.0.2.15 and IP address 192.168.1.40.Which of the following commands will accomplish this task?
Question70: A Linux administrator provisioned a new web server with custom administrative permissions for certain users.The administrator receives a report that user1 is unable to restart the Apache web service on this server. The administrator reviews the following output:[ root@server ] # id user1UID=1011 (user1) gid=1011 (USER1) groups=1011 (user1), 101 (www-data), 1120 (webadmin)[ root@server ] # cat /etc/sudoers.d/custom.confuser1 ALL=/usr/sbin/systemctl start httpd, /usr/sbin/systemctl stop httpd webadmin ALL=NOPASSWD: /etc/init.d.httpd restart, /sbin/service httpd restart, /usr/sbin/apache2ctl restart#%wheel ALL=(ALL) NOPASSWD: ALLWhich of the following would most likely resolve the issue while maintaining a least privilege security model?
Question71: A systems administrator is tasked with creating a cloud-based server with a public IP address.Which of the following technologies did the systems administrator use to complete this task?
Question72: A systems administrator is tasked with mounting a USB drive on a system. The USB drive has a single partition, and it has been mapped by the system to the device /dev/sdb. Which of the following commands will mount the USB to /media/usb?
Question73: A Linux administrator was tasked with deleting all files and directories with names that are contained in the sobelete.txt file. Which of the following commands will accomplish this task?
Question74: After starting an Apache web server, the administrator receives the following error:Apr 23 localhost.localdomain httpd 4618] : (98) Address already in use: AH00072: make_sock: could not bind to address [: :]80 Which of the following commands should the administrator use to further trou-bleshoot this issue?
Question75: A Linux systems administrator is troubleshooting an I/O latency on a single CPU server. The administrator runs a top command and receives the following output:%Cpu(s): 0.2 us, 33.1 sy, 0.0 ni, 0.0 id, 52.4 wa, 0.0 hi, 0.2 si, 0.0 st Which of the following is correct based on the output received from the exe-cuted command?
Question76: A systems administrator created a new Docker image called test. After building the image, the administrator forgot to version the release. Which of the following will allow the administrator to assign the v1 version to the image?
Question77: A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users' access will be disabled once the project is over. The expiration date should be 2021-09-30. Which of the following commands will accomplish this task?
Question78: A Linux administrator needs to determine whether a hostname is in the DNS. Which of the following would supply the information that is needed?
Question79: An administrator started a long-running process in the foreground that needs to continue without interruption.Which of the following keystrokes should theadministrator use to continue running the process in the background?
Question80: A Linux administrator is troubleshooting SSH connection issues from one of the workstations.When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message:The administrator reviews the information below:Which of the following is causing the connectivity issue?
Question81: A Linux system fails to start and delivers the following error message:Which of the following commands can be used to address this issue?
Question82: A systems administrator is tasked with setting up key-based SSH authentication. In which of the following locations should the administrator place the public keys for the server?
Question83: A systems administrator is deploying three identical, cloud-based servers. The administrator is using the following code to complete the task:Which of the following technologies is the administrator using?
Question84: A systems administrator is troubleshooting connectivity issues and trying to find out why a Linux server is not able to reach other servers on the same subnet it is connected to. When listing link parameters, the following is presented:Based on the output above, which of following is the MOST probable cause of the issue?
Question85: An administrator attempts to connect to a remote server by running the following command:$ nmap 192.168.10.36Starting Nmap 7.60 ( https://nmap.org ) at 2022-03-29 20:20 UTCNmap scan report for www1 (192.168.10.36)Host is up (0.000091s latency).Not shown: 979 closed portsPORT STATE SERVICE21/tcp open ftp22/tcp filtered ssh631/tcp open ippNmap done: 1 IP address (1 host up) scanned in 0.06 secondsWhich of the following can be said about the remote server?
Question86: After listing the properties of a system account, a systems administrator wants to remove the expiration date of a user account. Which of the following commands will accomplish this task?
Question87: A Linux administrator is creating a primary partition on the replacement hard drive for an application server.Which of the following commands should the administrator issue to verify the device name of this partition?
Question88: An administrator deployed a Linux server that is running a web application on port 6379/tcp.SELinux is in enforcing mode based on organization policies.The port is open on the firewall.Users who are trying to connect to a local instance of the web application receive Error 13, Permission denied.The administrator ran some commands that resulted in the following output:Which of the following commands should be used to resolve the issue?
Question89: A systems administrator configured firewall rules using firewalld. However, after the system is rebooted, the firewall rules are not present:The systems administrator makes additional checks:Which of the following is the reason the firewall rules are not active?
Question90: A systems administrator is troubleshooting a connectivity issue pertaining to access to a system named db.example.com. The system IP address should be 192.168.20.88. The administrator issues the dig command and receives the following output:The administrator runs grep db.example.com /etc/hosts and receives the following output:Given this scenario, which of the following should the administrator do to address this issue?
Question91: A Linux engineer receives reports that files created within a certain group are being modified by users who are not group members. The engineer wants to reconfigure the server so that only file owners and group members can modify new files by default. Which of the following commands would accomplish this task?
Question92: An administrator thinks that a package was installed using a snap. Which of the following commands can the administrator use to verify this information?
Question93: A systems administrator needs to verify whether the built container has the app.go file in its root directory.Which of the following can the administrator use to verify the root directory has this file?
Question94: A cloud engineer is installing packages during VM provisioning. Which of the following should the engineer use to accomplish this task?
Question95: Users have been unable to reach www.comptia.org from a Linux server. A systems administrator is troubleshooting the issue and does the following:Based on the information above, which of the following is causing the issue?
Question96: A Linux systems administrator is setting up a new web server and getting 404 - NOT FOUND errors while trying to access the web server pages from the browser. While working on the diagnosis of this issue, the Linux systems administrator executes the following commands:Which of the following commands will BEST resolve this issue?
Question97: A systems administrator is checking the system logs. The administrator wants to look at the last 20 lines of a log. Which of the following will execute the command?
Question98: A Linux administrator reviews a set of log output files and needs to identify files that contain any occurrence of the word denied. All log files containing entries in uppercase or lowercase letters should be included in the list. Which of the following commands should the administrator use to accomplish this task?
Question99: Using AD Query, the security gateway connections to the Active Directory Domain Controllers using what protocol?
Question100: A Linux administrator needs to create a symlink for /usr/local/bin/app-a, which was installed in/usr/local/share/app-a. Which of the following commands should the administrator use?
Question101: A systems administrator is tasked with changing the default shell of a system account in order to disable iterative logins. Which of the following is the best option for the administrator to use as the new shell?
Question102: A systems technician is working on deploying several microservices to various RPM-based systems, some of which could run up to two hours. Which of the following commands will allow the technician to execute those services and continue deploying other microservices within the same terminal section?
Question103: A user generated a pair of private-public keys on a workstation. Which of the following commands will allow the user to upload the public key to a remote server and enable passwordless login?
Question104: A systems administrator is adding a Linux-based server and removing a Windows-based server from a cloud-based environment. The changes need to be validated before they are applied to the cloud-based environment. Which of the following tools should be used to meet this requirement?
Question105: A Linux administrator is adding a new configuration file to a Git repository. Which of the following describes the correct order of Git commands to accomplish the task successfully?